package legumes.shared.domain;

import java.io.Serializable;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Serialized;

public class ProductVariety implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id private String name;
	@Serialized private ProductCategory productCategory;
	
	@Override
	public String toString() {

		return getName();
	}

	@Override
	public boolean equals(Object obj_) {
		return getName().equals(((ProductVariety) obj_).getName());
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setProductCategory(ProductCategory productCategory_) {
		productCategory = productCategory_;
	}
	
	public ProductCategory getProductCategory() {
		return productCategory;
	}
	
}
